﻿using System;
using System.Collections.Generic;
using System.Text;
using Cms.Core.Infrastructure.Extension;

namespace Cms.Core.Infrastructure.Attributes
{
    [AttributeUsage(AttributeTargets.Parameter|AttributeTargets.Method)]
   public class ParameterFilterAttribute: Attribute
    {
        private string[] ParameterName { get; set; }
        public ParameterFilterAttribute(params string[] name)
        {
            ParameterName = name;
        }

        public string GetParameterName()
        {

            return ParameterName?.ToJoin();
        }
    }
}
